<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>锥形渐变</title>
		<style>
			.circle {
				width: 200px;
				height: 200px;
				background: conic-gradient(from 0deg, red, yellow, green);
				margin: 50px auto;
				border-radius: 50%;
				position: relative;
			}
			
			.circle::after{
				content: '';
				position: absolute;
				inset: 10px;/* 是 CSS 中用于设置‌绝对定位元素‌（position: absolute 或 fixed）的四个方向偏移量（top、right、bottom、left）的简写属性，可显著简化代码‌ */
				background: white;
				border-radius: 50%;
			}
		</style>
	</head>
	<body>
		<div class="circle"></div>
	</body>
</html>
